//system define
`define S_W                  320
`define K_W                  128
`define N_W                  128
`define IV_W                 64
`define A_W                  64
`define P_W                  128
`define C_W                  128
`define T_W                  128
`define M_W                  64
`define H_W                  64
`define XI_W                 64
`define PC_CR_W              64

`define CTRL_REG_W           32
`define AHB_BUS_DATA_W       32
`define AHB_BUS_ADDR_W       32

`define BUF_ADDR_W           6

`define ASCON_HASH_CTRL_STA  8
`define ASCON_AEAD_CTRL_STA  14

`define ASCON_HASH_AHB_IF_FSM_NUM        7
`define ASCON_AEAD_AHB_IF_FSM_NUM        7
//module name define

`define ROUND                round
`define ROUND_PC             round_pc
`define ROUND_PS             round_ps
`define ROUND_PL             round_pl
`define ROUND_SPLIT          round_split
`define ROUND_MERGE          round_merge

`define P6_8                 p6_8
`define P12_8                p12_8
`define P12                  p12

`define SINGLE_BIT_ANY_CYC   single_bit_any_cyc
`define ANY_CYC              any_cyc
`define ONE_CYC              one_cyc

`define ASCON_AEAD_INIT      ascon_aead_init
`define ASCON_AEAD_AD        ascon_aead_ad
`define ASCON_AEAD_PT        ascon_aead_pt
`define ASCON_AEAD_CT        ascon_aead_ct
`define ASCON_AEAD_FINAL     ascon_aead_final
`define ASCON_AEAD_CTRL_REGS ascon_aead_ctrl_regs
`define ASCON_AEAD_EN_CTRL   ascon_aead_en_ctrl
`define ASCON_AEAD_DE_CTRL   ascon_aead_de_ctrl
`define ASCON_AEAD_AHB_IF    ascon_aead_ahb_if
`define ASCON_AEAD_EN_TOP    ascon_aead_en_top
`define ASCON_AEAD_DE_TOP    ascon_aead_de_top

`define ASCON_HASH_AM        ascon_hash_am
`define ASCON_HASH_SH        ascon_hash_sh
`define ASCON_HASH_CTRL_REGS ascon_hash_ctrl_regs
`define ASCON_HASH_CTRL      ascon_hash_ctrl
`define ASCON_HASH_AHB_IF    ascon_hash_ahb_if
`define ASCON_HASH_TOP       ascon_hash_top

`define RAM_32B_64           ram_32b_64
`define TX_BUF_2_32B_64      tx_buf_2_32b_64
`define RX_BUF_2_32B_64      rx_buf_2_32b_64
`define TX_BUF_4_32B_64      tx_buf_4_32b_64
`define RX_BUF_4_32B_64      rx_buf_4_32b_64



